<template>
  <div>
  </div>
</template>

<script>
  export default {
    data() {
      return {
      }
    },
    onLoad() {
      // 初始化data
      Object.assign(this.$data, this.$options.data())
    },
    onShow() {
      // this.initEls()
    },
    mounted() {
      setTimeout(() => {
        this.initEls()
      }, 100)
    },
    methods: {
      initEls() {
        if (!Object.keys(this.$pt.getStorageSync('local')).length) return
        let that = this
        this.$pt.showModal({
          title: '温馨提示',
          cancelText: '朕知道了',
          confirmText: '附近店铺',
          content: '该店铺已打烊，暂时不能接单，您可以选择附近的其他店铺下单。如有疑问可拨打客服电话' + this.getEnterprisePhone,
          success: res => {
            if (res.confirm) {
              that.$pt.navigateTo({ url: '/pages/home/change-site/main' })
            }
          }
        })
      }
    }
  }
</script>

<style scoped lang="less">
  .div-pop{
    z-index: 1200;
  }
  .get-user-info {
    width: 375px;
    height: calc(100vh);
    background-color: #fff;
    overflow: hidden;
    .phone-info{
      // margin-top: 135px;
      &.other-page{
        margin-top: 75px;
      }
    }
    .avatar-bar{
      border-radius: 100px;
    }
    .primary-button{
      background: #ffe100;
      border-radius: 50px;
      margin-top: 30px;
      padding: 1px 0;
    }
    .agree-bar{
      span{
        display: inline-block;
        color: #5876B3;
      }
    }
    .top-nav{
      background: #ffffff;
      color: #333;
      box-sizing: border-box;
      text-align: center;
      font-size: 15px;
      position: fixed;
      width: 100%;
      left: 0;
      top: 0;
      z-index: 100;
      .top-txt{
        font-size: 18px;
        color: #333;
      }
      .self-back {
        width: 20rpx;
        height: 20rpx;
        border-top: 2px solid #000;
        border-left: 2px solid #000;
        transform: rotate(-45deg);
        position: absolute;
        left: 20rpx;
        top: 70rpx;
      }
    }
  }
</style>
